package main

import (
	"fmt"
)

type USB interface {
	Name() string
	Connect()
}

type Phone struct {
	name string
}

func (pc Phone) Name() string {
	return pc.name
}

func (pc Phone) Connect() {
	fmt.Println("connect:", pc.name)
}
func main() {
	a := Phone{name: "TT"}
	a.Connect()
	Disconnect(a)
}

func Disconnect(usb USB) {
	fmt.Println(usb.Name())
}
